from constants import *
import pygame, sys
from pygame.locals import *
# 地图组件
class MAP :
    def __init__(self, left, top, width, height, border) :
        self.Left = left
        self.Right = left + width
        self.Top = top
        self.Bottom = top + height
        self.Width = width
        self.Height = height
        self.Border = border
        self.Rect = [self.Left, self.Top, self.Width, self.Height]

    def printMap(self, screen) :
        pygame.draw.rect(screen, lineColor, self.Rect, self.Border)